﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using UnitControls;

namespace TGMTireBuilder
{
    /// <summary>
    /// Interaction logic for BasicSpecs.xaml
    /// </summary>
    public partial class BasicSpecs : Window
    {
        public bool Accepted = false;

        public BasicSpecs()
        {
            InitializeComponent();
        }

        private void BtnDone_Click(object sender, RoutedEventArgs e)
        {
            Accepted = true;
            Close();
        }

        public double GetTreadWidth()
        {
            return InTreadWidth.Value;
        }

        public double GetRimRadius()
        {
            return InRimDiameter.Value * 0.5;
        }

        public double GetSidewallHeight()
        {
            return InSidewallRatio.Value * InTreadWidth.Value;
        }
    }
}
